package com.mingqijia.gassafety.webserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.ValveInfo;
import com.mingqijia.gassafety.db.entity.vo.ValveInfoListVO;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.ValveInfoAddRequest;
import com.mingqijia.gassafety.webserver.request.ValveInfoRequest;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 电磁阀信息表 服务类
 * </p>
 *
 * @author li.shiying
 * @since 2023-08-22
 */
public interface ValveInfoService extends IService<ValveInfo> {

    PageUtil<ValveInfoListVO> getList(ValveInfoRequest req);

    void add(ValveInfoAddRequest req);

    void remove(Integer id);

    void edit(ValveInfoAddRequest req);

    List<String> getModelList();

    ValveInfo getInfoById(Integer valveInfoId);

    Map<Integer, ValveInfo> getValveInfo(List<Integer> valveInfoIds, String spId);
}
